* <programlisting>
* /* Theme labels that are descendants of a window */
* GtkWindow GtkLabel {
- * background-color: #898989;
+ * background-color: #898989
* }
*
* /* Theme notebooks, and anything that's within these */
* GtkNotebook {
- * background-color: #a939f0;
+ * background-color: #a939f0
* }
*
* /* Theme combo boxes, and entries that
* are direct children of a notebook */
* GtkComboBox,
* GtkNotebook > GtkEntry {
- * background-color: #1209a2;
+ * color: @fg_color;
+ * background-color: #1209a2
* }
*
* /* Theme any widget within a GtkBin */
* GtkBin * {
- * font-name: Sans 20;
+ * font-name: Sans 20
* }
* </programlisting>
* </example>
* <programlisting>
* /* Theme a label named title-label */
* GtkLabel#title-label {
- * font-name: Sans 15;
+ * font-name: Sans 15
* }
*
* /* Theme any widget named main-entry */
* #main-entry {
- * background-color: #f0a810;
+ * background-color: #f0a810
* }
* </programlisting>
* </example>
*
* /* Theme spinbuttons' entry */
* GtkSpinButton.entry {
- * color: #900185;
+ * color: #900185
* }
* </programlisting>
* </example>
* <example>
* <title>Using the @import rule</title>
* <programlisting>
- * @import url ("path/to/common.css")
+ * @import url ("path/to/common.css");
* </programlisting>
* </example>
* <para>
* example in common CSS it is fine to define a font through
* the different @font-family, @font-style, @font-size
* properties, meanwhile in GTK+'s CSS only the canonical
- * @font property would be supported.
+ * @font property is supported.
* </para>
* <para>
* The currently supported properties are:
str++;
end = str;
- while (*end == '-' || *end == '_' ||
- g_ascii_isalpha (*end))
+ while (*end == '-' || *end == '_' || g_ascii_isalpha (*end))
end++;
name = g_strndup (str, end - str);
str++;
SKIP_SPACES (str);
- position = g_strtod (str, &end);
+ position = g_ascii_strtod (str, &end);
str = end;
SKIP_SPACES (str);
g_scanner_get_next_token (scanner);
if (scanner->token != ';')
- return ';';
+ break;
g_scanner_get_next_token (scanner);
}